package com.love.marriage.offlineServiceProvider.mapper;

import com.love.marriage.offlineServiceProvider.entity.OfflineServiceProvider;
import com.love.marriage.offlineServiceProvider.vo.OfflineServiceProviderVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import com.love.marriage.common.interfaces.permission.DataPermission;

/**
 * description:  线下服务商表 mapper
 * author:       alex
 * createDate:   2024-12-08 12:08:27
 * version:      1.0.0
 */
@Mapper
public interface OfflineServiceProviderMapper extends BaseMapper<OfflineServiceProvider> {

    @DataPermission(table = "offline_service_provider_t")
    Page<OfflineServiceProviderVo> getPage(Page<OfflineServiceProviderVo> page, @Param("offlineServiceProviderVo") OfflineServiceProviderVo offlineServiceProviderVo);

    OfflineServiceProviderVo queryOfflineServiceProvider(@Param("id") Long id);

    OfflineServiceProviderVo queryOfflineServiceProviderByUserId(@Param("userId") Long userId, @Param("type") String type);
}
